package tp.pr5;

import java.util.Vector;

public class Observable<T>
{
	protected Vector<T> lista;
	
	/**
	 * Main constructor
	 * 
	 */
	public Observable()
	{
		this.lista = new Vector<T>();
	}

	/**
	 * Adds an observer
	 * 
	 * @param observer
	 */
	public void addObserver(T observer)
	{
		lista.add(observer);
	}
	
	/**
	 * Removes and observer
	 * 
	 * @param observer
	 */
	public void removeObserver(T observer)
	{
		lista.remove(observer);
	}

}
